<?php
require("includes/init.php");
require(ROOT_PATH . "includes/erp_report/erp_report_function.php");


$s = file_get_contents("/Users/david/Downloads/cpv_1_2");

// var_dump($s);

$arr = explode("||", $s);
// var_dump($arr);

$res = [];

foreach ($arr as $key => $value) {
    $col = explode("--",$value);
    // var_dump($col);die;
    $res[] = $col;
}


$result = ["default_sheet"=>$res];


// var_dump($result);

$erp_report_send_to = array("546183823@qq.com");
// $erp_report_send_to = array("lwei@visable.com");


send_v_email($result, 0, $erp_report_send_to);
